import request from "@/utils/request";
// 查询用户列表
export function listUsers(query) {
    return request({
      url: "/gsUser/page",
      method: "get",
      params: query,
    });
  }

// 查询用户
export function getUserById(query) {
    return request({
      url: "/gsUser/queryById/"+query,
      method: "get",
    });
  }

// 修改
export function updateUser(data) {
    return request({
      url: "/gsUser",
      method: "post",
      data: data,
    });
  }
  
// 删除
export function deleteUser(userId) {
return request({
    url: "/gsUser/delete/" + userId,
    method: "get",
});
}

// 新增
export function addUser(data) {
    return request({
      url: "/gsUser",
      method: "put",
      data: data,
    });
  }